/**
 * Created by chenxu on 15/11/22.
 * Copyright(c) 2015 0d0a.com. All rights reserved.
 */

package com.webonn.frame.conf;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;

public class SMSConfiguration {
    /**
     * Enabled
     */
    @JsonProperty
    @NotEmpty
    public boolean enabled = true;

    @JsonProperty
    @NotEmpty
    public String smsuri = "";

    @JsonProperty
    @NotEmpty
    public String smsAppKey = "";

    @JsonProperty
    @NotEmpty
    public String smsSecret = "";

    @JsonProperty
    @NotEmpty
    public String appName = "";

    @JsonProperty("sms_template_auth")
    @NotEmpty
    public String sms_template_auth ="";

    @JsonProperty("sms_template_error")
    @NotEmpty
    public String sms_template_error = "";

    @JsonProperty("signName")
    @NotEmpty
    public String signName = "";

    @JsonProperty("expiry")
    @NotEmpty
    public long expiry = 15*60*1000l;

    public boolean isEnabled() {
        return enabled;
    }

    public String getSmsuri() {
        return smsuri;
    }

    public String getSmsAppKey() {
        return smsAppKey;
    }

    public String getSmsSecret() {
        return smsSecret;
    }

    public String getAppName() {
        return appName;
    }

    public String getSms_template_auth() {
        return sms_template_auth;
    }

    public void setSms_template_auth(String sms_template_auth) {
        this.sms_template_auth = sms_template_auth;
    }

    public String getSignName() {
        return signName;
    }

    public long getExpiry() {
        return expiry;
    }

    public String getSms_template_error() {
        return sms_template_error;
    }

    public void setSms_template_error(String sms_template_error) {
        this.sms_template_error = sms_template_error;
    }
}
